import requests

response = requests.get('https://www.baidu.com/')
# 返回响应的字符编码
print(response.encoding)

# 获取响应的cookies信息
print(response.cookies)
